#!/bin/bash

# Super OKR项目Docker镜像构建脚本

# 设置项目根目录
PROJECT_ROOT=$(cd "$(dirname "$0")" && pwd)

echo "开始构建Super OKR项目Docker镜像..."

echo "1. 构建后端镜像..."
cd "$PROJECT_ROOT/backend"
docker build -t super-okr-backend .

echo "2. 构建前端镜像..."
cd "$PROJECT_ROOT/frontend"
docker build -t super-okr-frontend .

echo "3. 构建完成！"
echo "后端镜像: super-okr-backend"
echo "前端镜像: super-okr-frontend"
echo ""
echo "使用以下命令运行应用程序："
echo "  docker-compose up -d"
echo ""
echo "访问地址：http://localhost"

cd "$PROJECT_ROOT"